<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
	.red{
		color:red
	}
</style>
</head>
<body>
	
	<form action="login.do" method="POST">
		用户名:<input type="text" name="username">
		<c:if test="${msg eq '用户名不存在'}">
			<span class="red">用户名不存在</span>
		</c:if>
		<br>
		密码:<input type="password" name="password" >
		<c:if test="${msg eq '密码错误'}">
			<span class="red">密码错误</span>
		</c:if>
			<br>
			
			<input type="submit" value="登录">
	</form>
</body>
</html>